package cn.wolfcode.qo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Setter
@Getter
@ToString
public class QueryObject {
    //当前页 currentPage ;
    private int currentPage = 1;
    //每页条数 pageSize
    private int pageSize = 3;

    //计算分页起始索引
    public int getStart() {
        return (currentPage - 1) * pageSize;
    }
}
